<?php
namespace app\common\validate\Business;

use think\Validate;

// 用户消费记录的验证器
class Receive extends Validate
{
    protected $rule =   [
        'applyid'  => 'require',
        'status'   => ['require', "in:apply,allot,recovery"],
        'busid' => 'require', 
    ];

    protected $message  =   [
        'applyid.require' => '申请人id不能为空',
        'status.require'  => '状态不能为空',
        'status.in'  => '状态错误',
        'busid.require'   => '客户id不能为空', 
    ];
}